package interfas;
/*
 *This the common interface for user DAO 
 *  
 *  
 *  
 */
import org.mybeans.dao.DAOException;
import databeans.User;

public interface UserInterface {

    /**
     * Add the user to the list in time sequence
     * @param user text to be added to the user list.
     * @throws DAOException 
     */
    public abstract void create(User user) throws DAOException;
    /**
	  * Gets the user row from the user table with particular email address  
	  * @return all the row of particular email address.
     *  @throws DAOException 
	  */
    public abstract User lookup(String Userid) throws DAOException;    
     /**
      * Update the user's information in the user table for particular user 
     * @throws DAOException 
      */    
     public abstract void updateUser(User user) throws DAOException;
     /**
      * Delet the user's information in the user table for particular user 
     * @throws DAOException 
      */
     public abstract User[] getUsers() throws DAOException;
     /**
      * Gets the number of users in the Table.
      * @return the number of users in the table.
     * @throws DAOException 
      */
     public abstract int size() throws DAOException;
     
}
